import chainlit as cl
from fastapi import FastAPI
from chainlit.utils import mount_chainlit

from fastapi import FastAPI
from chainlit.utils import mount_chainlit

app = FastAPI()


@app.get("/app")
def read_main():
    '''
    测试内容
    '''
    return {"message": "Hello World from main app"}

 
'''过载在 fastapi 下'''
# uvicorn main:app --host 0.0.0.0 --port 8899
# 127.0.0.1:port/chainlit
mount_chainlit(app=app, target="app.py", path="/chainlit")